package br.com.winesys.geta.databinding.componentBinder;

import br.com.winesys.geta.databinding.ComponentBinder;
import br.com.winesys.geta.databinding.component.Hidden;

public final class HiddenBinder implements ComponentBinder<Hidden> {

	private static final ComponentBinder<Hidden> INSTANCE = new HiddenBinder();

	public static ComponentBinder<Hidden> getInstance() {
		return INSTANCE;
	}

	private HiddenBinder() {
	}

	@Override
	public Object read(Hidden component) {
		return component.getValue();
	}

	@Override
	public void write(Hidden component, Object value) {
		component.setValue(value);
	}
}
